
import {notification} from 'antd'
const go = (type,msg,title)=>{
	notification[type]({
      message:title,
      description:msg
    })
}
export default {
	error:(msg,title='提示')=>{
		go('error',msg,title)
	},
	success:(msg,title='提示')=>{
		go('success',msg,title)
	},
	info:(msg,title='提示')=>{
		go('info',msg,title)
	},
	warning:(msg,title='提示')=>{
		go('warning',msg,title)
	}
}